package com.ff.neuropp.repository;

import com.ff.neuropp.domain.CourseCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CourseCategoryRepository extends JpaRepository<CourseCategory, Integer>, JpaSpecificationExecutor<CourseCategory> {

    List<CourseCategory> findAllByStatus(Integer status);

    List<CourseCategory> findAllByStatusAndNameLike(Integer status, String name);

    CourseCategory findByIdAndStatus(Integer id, Integer status);
}
